home *** CD-ROM | disk | FTP | other *** search
/ Carousel Volume 2 #1 / carousel.iso / mactosh / da / clipmagi.sit / programming information < prev    next >
MacBinary  |  1989-06-01  |  7.8 KB  |  [TEXT/MPS ]

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: MacBinary (archive/macBinary).

ConfidenceProgramDetectionMatch TypeSupport
10% dexvert MacBinary (archive/macBinary) fallback Supported
1% dexvert Text File (text/txt) fallback Supported
100% file MacBinary II, inited, Thu Jun 1 14:49:09 1989, modified Thu Jun 1 14:49:09 1989, creator 'MPS ', type ASCII, 7350 bytes "programming information" , at 0x1d36 382 bytes resource default (weak)
99% file data default
74% TrID Macintosh plain text (MacBinary) default
25% TrID MacBinary 2 default (weak)
100% siegfried fmt/1762 MacBinary (II) default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[MPS ]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 17 70 72 6f 67 72 61 | 6d 6d 69 6e 67 20 69 6e |..progra|mming in|
|00000010| 66 6f 72 6d 61 74 69 6f | 6e 00 00 00 00 00 00 00 |formatio|n.......|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 4d 50 53 | 20 01 00 00 00 00 00 00 |.TEXTMPS| .......|
|00000050| 00 00 00 00 00 1c b6 00 | 00 01 7e a0 ab 35 a5 a0 |........|..~..5..|
|00000060| ab 35 a5 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |.5......|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 1f f0 00 00 |........|........|
|00000080| 54 68 65 20 43 6c 69 70 | 62 6f 61 72 64 20 4d 61 |The Clip|board Ma|
|00000090| 67 69 63 69 61 6e 20 77 | 6f 75 6c 64 20 6c 6f 6f |gician w|ould loo|
|000000a0| 6b 20 66 6f 72 20 63 6f | 6d 70 6f 6e 65 6e 74 73 |k for co|mponents|
|000000b0| 20 69 6e 20 74 68 65 20 | 66 69 6c 65 20 27 4d 61 | in the |file 'Ma|
|000000c0| 67 69 63 20 57 61 6e 64 | 27 2e 0d 54 68 65 20 63 |gic Wand|'..The c|
|000000d0| 6f 6d 70 6f 6e 65 6e 74 | 73 20 61 72 65 20 6f 66 |omponent|s are of|
|000000e0| 20 74 68 65 20 72 65 73 | 6f 75 72 63 65 20 74 79 | the res|ource ty|
|000000f0| 70 65 20 27 43 4e 56 54 | 27 2c 20 74 68 65 20 72 |pe 'CNVT|', the r|
|00000100| 65 73 6f 75 72 63 65 20 | 6e 61 6d 65 20 6d 75 73 |esource |name mus|
|00000110| 74 20 66 6f 6c 6c 6f 77 | 0d 63 65 72 74 61 69 6e |t follow|.certain|
|00000120| 20 6e 61 6d 69 6e 67 20 | 63 6f 6e 76 65 6e 74 69 | naming |conventi|
|00000130| 6f 6e 20 73 6f 20 74 68 | 61 74 20 43 4d 20 75 6e |on so th|at CM un|
|00000140| 64 65 72 73 74 61 6e 64 | 73 20 69 74 73 20 63 6f |derstand|s its co|
|00000150| 6e 74 65 6e 74 2e 20 54 | 68 65 20 66 69 72 73 74 |ntent. T|he first|
|00000160| 20 66 6f 75 72 0d 63 68 | 61 72 61 63 74 65 72 73 | four.ch|aracters|
|00000170| 20 6f 66 20 74 68 65 20 | 72 65 73 6f 75 72 63 65 | of the |resource|
|00000180| 20 6e 61 6d 65 20 69 73 | 20 74 68 65 20 64 61 74 | name is| the dat|
|00000190| 61 20 74 79 70 65 20 74 | 68 61 74 20 74 68 65 20 |a type t|hat the |
|000001a0| 63 6f 6d 70 6f 6e 65 6e | 74 20 63 61 6e 20 77 6f |componen|t can wo|
|000001b0| 72 6b 20 6f 6e 2e 0d 53 | 6f 20 69 66 20 74 68 65 |rk on..S|o if the|
|000001c0| 20 73 63 72 61 70 20 64 | 61 74 61 20 6f 66 20 74 | scrap d|ata of t|
|000001d0| 79 70 65 20 27 49 43 4f | 4e 27 20 69 73 20 73 65 |ype 'ICO|N' is se|
|000001e0| 6c 65 63 74 65 64 2c 20 | 43 4d 20 77 6f 75 6c 64 |lected, |CM would|
|000001f0| 20 6c 6f 6f 6b 20 66 6f | 72 20 61 6c 6c 20 27 43 | look fo|r all 'C|
|00000200| 4e 56 54 27 0d 72 65 73 | 6f 75 72 63 65 73 20 77 |NVT'.res|ources w|
|00000210| 69 74 68 20 6e 61 6d 65 | 73 20 74 68 61 74 20 73 |ith name|s that s|
|00000220| 74 61 72 74 20 77 69 74 | 68 20 27 49 43 4f 4e 27 |tart wit|h 'ICON'|
|00000230| 20 61 6e 64 20 64 69 73 | 70 6c 61 79 65 64 20 74 | and dis|played t|
|00000240| 68 65 6d 20 74 6f 20 74 | 68 65 20 75 73 65 72 2e |hem to t|he user.|
|00000250| 0d 27 2a 2a 2a 2a 27 20 | 69 73 20 75 73 65 64 20 |.'****' |is used |
|00000260| 61 73 20 74 68 65 20 77 | 69 6c 64 63 61 72 64 20 |as the w|ildcard |
|00000270| 6e 61 6d 65 2c 20 73 6f | 20 61 6e 79 20 63 6f 6d |name, so| any com|
|00000280| 70 6f 6e 65 6e 74 20 77 | 69 74 68 20 72 65 73 6f |ponent w|ith reso|
|00000290| 75 72 63 65 20 6e 61 6d | 65 20 73 74 61 72 74 69 |urce nam|e starti|
|000002a0| 6e 67 0d 77 69 74 68 20 | 27 2a 2a 2a 2a 27 20 69 |ng.with |'****' i|
|000002b0| 73 20 61 6c 77 61 79 73 | 20 70 72 65 73 65 6e 74 |s always| present|
|000002c0| 65 64 20 74 6f 20 74 68 | 65 20 75 73 65 72 20 69 |ed to th|e user i|
|000002d0| 66 20 73 6f 6d 65 20 73 | 63 72 61 70 20 64 61 74 |f some s|crap dat|
|000002e0| 61 20 74 79 70 65 20 69 | 73 20 73 65 6c 65 63 74 |a type i|s select|
|000002f0| 65 64 2e 0d 27 5f 5f 5f | 5f 27 20 69 73 20 75 73 |ed..'___|_' is us|
|00000300| 65 64 20 74 6f 20 69 6e | 64 69 63 61 74 65 20 6e |ed to in|dicate n|
|00000310| 75 6c 6c 20 64 61 74 61 | 20 77 68 65 72 65 20 6e |ull data| where n|
|00000320| 6f 20 73 63 72 61 70 20 | 64 61 74 61 20 69 73 20 |o scrap |data is |
|00000330| 73 65 6c 65 63 74 65 64 | 2e 20 54 68 69 73 20 69 |selected|. This i|
|00000340| 73 0d 66 6f 72 20 74 68 | 65 20 63 6f 6d 70 6f 6e |s.for th|e compon|
|00000350| 65 6e 74 73 20 74 68 61 | 74 20 64 6f 65 73 20 6e |ents tha|t does n|
|00000360| 6f 74 20 6e 65 65 64 20 | 61 6e 79 20 69 6e 70 75 |ot need |any inpu|
|00000370| 74 20 64 61 74 61 2c 20 | 62 75 74 20 77 6f 75 6c |t data, |but woul|
|00000380| 64 20 67 65 6e 65 72 61 | 74 65 20 6e 65 77 20 64 |d genera|te new d|
|00000390| 61 74 61 0d 6f 6e 20 69 | 74 73 20 6f 77 6e 2e 20 |ata.on i|ts own. |
|000003a0| 54 68 65 20 72 65 73 74 | 20 6f 66 20 74 68 65 20 |The rest| of the |
|000003b0| 72 65 73 6f 75 72 63 65 | 20 6e 61 6d 65 20 69 73 |resource| name is|
|000003c0| 20 6a 75 73 74 20 74 68 | 65 20 6e 61 6d 65 20 6f | just th|e name o|
|000003d0| 66 20 74 68 65 20 63 6f | 6d 70 6f 6e 65 6e 74 2e |f the co|mponent.|
|000003e0| 0d 54 48 65 20 63 6f 6d | 70 6f 6e 65 6e 74 20 74 |.THe com|ponent t|
|000003f0| 68 61 74 20 63 6f 6e 76 | 65 72 74 73 20 6f 6e 65 |hat conv|erts one|
|00000400| 20 64 61 74 61 20 74 79 | 70 65 20 74 6f 20 61 6e | data ty|pe to an|
|00000410| 6f 74 68 65 72 20 68 61 | 73 20 61 20 73 70 65 63 |other ha|s a spec|
|00000420| 69 61 6c 20 6e 61 6d 69 | 6e 67 0d 63 6f 6e 76 65 |ial nami|ng.conve|
|00000430| 6e 74 69 6f 6e 2e 20 54 | 68 65 20 72 65 73 6f 75 |ntion. T|he resou|
|00000440| 72 63 65 20 6e 61 6d 65 | 20 77 6f 75 6c 64 20 68 |rce name| would h|
|00000450| 61 76 65 20 61 20 27 3e | 27 20 61 73 20 74 68 65 |ave a '>|' as the|
|00000460| 20 66 69 66 74 68 20 63 | 68 61 72 61 63 74 65 72 | fifth c|haracter|
|00000470| 2c 0d 66 6f 6c 6c 6f 77 | 65 64 20 62 79 20 6e 65 |,.follow|ed by ne|
|00000480| 77 20 64 61 74 61 20 74 | 79 70 65 20 6e 61 6d 65 |w data t|ype name|
|00000490| 2e 20 53 6f 20 74 68 65 | 20 63 6f 6d 70 6f 6e 65 |. So the| compone|
|000004a0| 6e 74 20 74 6f 20 63 6f | 6e 76 65 72 74 20 61 6e |nt to co|nvert an|
|000004b0| 20 27 49 43 4f 4e 27 20 | 74 6f 20 27 50 49 43 54 | 'ICON' |to 'PICT|
|000004c0| 27 0d 77 6f 75 6c 64 20 | 68 61 76 65 20 74 68 65 |'.would |have the|
|000004d0| 20 6e 61 6d 65 20 27 49 | 43 4f 4e 3e 50 49 43 54 | name 'I|CON>PICT|
|000004e0| 27 2e 0d 0d 54 68 65 20 | 62 61 73 69 63 20 6d 6f |'...The |basic mo|
|000004f0| 64 65 6c 20 69 73 20 74 | 68 61 74 20 65 61 63 68 |del is t|hat each|
|00000500| 20 63 6f 6d 70 6f 6e 65 | 6e 74 20 69 73 20 61 20 | compone|nt is a |
|00000510| 74 6f 6f 6c 20 66 6f 72 | 20 64 61 74 61 20 74 72 |tool for| data tr|
|00000520| 61 6e 73 66 6f 72 6d 61 | 74 69 6f 6e 2c 20 61 20 |ansforma|tion, a |
|00000530| 70 69 70 65 0d 77 68 65 | 72 65 20 63 65 72 74 61 |pipe.whe|re certa|
|00000540| 69 6e 20 74 79 70 65 20 | 6f 66 20 64 61 74 61 20 |in type |of data |
|00000550| 67 6f 65 73 20 69 6e 20 | 61 74 20 6f 6e 65 20 65 |goes in |at one e|
|00000560| 6e 64 2c 20 61 6e 64 20 | 74 68 65 20 74 72 61 6e |nd, and |the tran|
|00000570| 73 66 6f 72 6d 65 64 20 | 64 61 74 61 20 63 6f 6d |sformed |data com|
|00000580| 65 73 0d 6f 75 74 20 61 | 74 20 74 68 65 20 6f 74 |es.out a|t the ot|
|00000590| 68 65 72 20 65 6e 64 2e | 20 54 68 65 20 63 6f 6d |her end.| The com|
|000005a0| 70 6f 6e 65 6e 74 20 69 | 73 20 6e 6f 74 20 61 77 |ponent i|s not aw|
|000005b0| 61 72 65 20 74 68 61 74 | 20 69 74 20 69 73 20 70 |are that| it is p|
|000005c0| 72 6f 63 65 73 73 69 6e | 67 20 73 63 72 61 70 20 |rocessin|g scrap |
|000005d0| 64 61 74 61 2e 0d 49 6e | 20 66 61 63 74 20 74 68 |data..In| fact th|
|000005e0| 65 20 63 6f 6d 70 6f 6e | 65 6e 74 73 20 6e 65 65 |e compon|ents nee|
|000005f0| 64 20 6e 6f 74 20 62 65 | 20 75 73 65 64 20 69 6e |d not be| used in|
|00000600| 20 74 68 65 20 43 4d 20 | 65 6e 76 69 72 6f 6e 6d | the CM |environm|
|00000610| 65 6e 74 2e 20 49 20 63 | 68 6f 6f 73 65 20 74 68 |ent. I c|hoose th|
|00000620| 65 0d 43 4d 20 65 6e 76 | 69 72 6f 6e 6d 65 6e 74 |e.CM env|ironment|
|00000630| 20 62 65 63 61 75 73 65 | 20 49 20 77 61 6e 74 20 | because| I want |
|00000640| 74 6f 20 70 72 6f 76 65 | 20 69 74 20 63 61 6e 20 |to prove| it can |
|00000650| 62 65 20 64 6f 6e 65 20 | 69 6e 20 61 20 76 65 72 |be done |in a ver|
|00000660| 79 20 73 6d 61 6c 6c 20 | 70 72 6f 67 72 61 6d 2e |y small |program.|
|00000670| 0d 49 74 20 63 61 6e 20 | 62 65 20 61 20 6d 75 63 |.It can |be a muc|
|00000680| 68 20 6d 6f 72 65 20 70 | 6f 77 65 72 66 75 6c 20 |h more p|owerful |
|00000690| 73 79 73 74 65 6d 20 69 | 66 20 69 74 20 69 73 20 |system i|f it is |
|000006a0| 70 75 74 20 69 6e 20 61 | 20 72 69 63 68 65 72 20 |put in a| richer |
|000006b0| 65 6e 76 69 72 6f 6e 6d | 65 6e 74 2e 0d 54 68 65 |environm|ent..The|
|000006c0| 20 69 6e 70 75 74 20 74 | 6f 20 74 68 65 20 63 6f | input t|o the co|
|000006d0| 6d 70 6f 6e 65 6e 74 20 | 69 73 20 74 68 65 20 69 |mponent |is the i|
|000006e0| 6e 70 75 74 20 64 61 74 | 61 20 74 79 70 65 2c 20 |nput dat|a type, |
|000006f0| 74 68 65 20 69 6e 70 75 | 74 20 64 61 74 61 20 68 |the inpu|t data h|
|00000700| 61 6e 64 6c 65 2c 20 61 | 6e 64 0d 74 68 65 20 63 |andle, a|nd.the c|
|00000710| 6f 6d 70 6f 6e 65 6e 74 | 20 77 6f 75 6c 64 20 72 |omponent| would r|
|00000720| 65 74 75 72 6e 20 74 68 | 65 20 6f 75 74 70 75 74 |eturn th|e output|
|00000730| 20 64 61 74 61 20 74 79 | 70 65 20 61 6e 64 20 74 | data ty|pe and t|
|00000740| 68 65 20 6f 75 74 70 75 | 74 20 64 61 74 61 20 68 |he outpu|t data h|
|00000750| 61 6e 64 6c 65 2e 0d 54 | 68 65 20 27 43 4e 56 54 |andle..T|he 'CNVT|
|00000760| 27 20 69 73 20 6a 75 73 | 74 20 61 20 63 6f 64 65 |' is jus|t a code|
|00000770| 20 72 65 73 6f 75 72 63 | 65 20 77 69 74 68 20 74 | resourc|e with t|
|00000780| 68 65 20 65 6e 74 72 79 | 20 70 6f 69 6e 74 20 61 |he entry| point a|
|00000790| 74 20 74 68 65 20 62 65 | 67 69 6e 6e 69 6e 67 2e |t the be|ginning.|
|000007a0| 0d 0d 49 4e 54 45 52 46 | 41 43 45 0d 09 54 59 50 |..INTERF|ACE..TYP|
|000007b0| 45 0d 09 09 52 6f 75 74 | 69 6e 65 49 6e 66 6f 20 |E...Rout|ineInfo |
|000007c0| 3d 20 52 45 43 4f 52 44 | 0d 09 09 09 65 6e 74 72 |= RECORD|....entr|
|000007d0| 79 50 6f 69 6e 74 3a 09 | 09 50 72 6f 63 50 74 72 |yPoint:.|.ProcPtr|
|000007e0| 3b 0d 09 09 09 72 65 73 | 49 44 3a 09 09 09 49 6e |;....res|ID:...In|
|000007f0| 74 65 67 65 72 3b 0d 09 | 09 09 70 61 72 6d 43 6f |teger;..|..parmCo|
|00000800| 75 6e 74 3a 09 09 49 6e | 74 65 67 65 72 3b 0d 09 |unt:..In|teger;..|
|00000810| 09 09 75 73 65 44 65 66 | 61 75 6c 74 3a 09 09 42 |..useDef|ault:..B|
|00000820| 6f 6f 6c 65 61 6e 3b 0d | 09 09 09 45 4e 44 3b 0d |oolean;.|...END;.|
|00000830| 09 09 52 6f 75 74 69 6e | 65 49 6e 66 6f 50 74 72 |..Routin|eInfoPtr|
|00000840| 20 3d 20 5e 52 6f 75 74 | 69 6e 65 49 6e 66 6f 3b | = ^Rout|ineInfo;|
|00000850| 0d 09 09 50 61 72 6d 49 | 6e 66 6f 20 3d 20 52 45 |...ParmI|nfo = RE|
|00000860| 43 4f 52 44 0d 09 09 09 | 73 72 63 54 79 70 65 3a |CORD....|srcType:|
|00000870| 09 09 52 65 73 54 79 70 | 65 3b 0d 09 09 09 73 72 |..ResTyp|e;....sr|
|00000880| 63 48 61 6e 64 6c 65 3a | 09 09 48 61 6e 64 6c 65 |cHandle:|..Handle|
|00000890| 3b 0d 09 09 09 64 73 74 | 54 79 70 65 3a 09 09 52 |;....dst|Type:..R|
|000008a0| 65 73 54 79 70 65 3b 0d | 09 09 09 64 73 74 48 61 |esType;.|...dstHa|
|000008b0| 6e 64 6c 65 3a 09 09 48 | 61 6e 64 6c 65 3b 0d 09 |ndle:..H|andle;..|
|000008c0| 09 09 7b 20 6d 6f 72 65 | 20 69 66 20 6e 65 63 65 |..{ more| if nece|
|000008d0| 73 73 61 72 79 20 7d 0d | 09 09 09 45 4e 44 3b 0d |ssary }.|...END;.|
|000008e0| 09 09 50 61 72 6d 49 6e | 66 6f 50 74 72 20 3d 20 |..ParmIn|foPtr = |
|000008f0| 5e 50 61 72 6d 49 6e 66 | 6f 3b 0d 09 09 0d 09 46 |^ParmInf|o;.....F|
|00000900| 55 4e 43 54 49 4f 4e 20 | 45 78 74 52 6f 75 74 69 |UNCTION |ExtRouti|
|00000910| 6e 65 28 6d 79 49 6e 66 | 6f 50 74 72 3a 20 52 6f |ne(myInf|oPtr: Ro|
|00000920| 75 74 69 6e 65 49 6e 66 | 6f 50 74 72 3b 20 70 61 |utineInf|oPtr; pa|
|00000930| 72 6d 50 74 72 3a 70 61 | 72 6d 49 6e 66 6f 50 74 |rmPtr:pa|rmInfoPt|
|00000940| 72 29 3a 4f 53 45 72 72 | 3b 0d 09 0d 53 72 63 54 |r):OSErr|;...SrcT|
|00000950| 79 70 65 20 61 6e 64 20 | 73 72 63 48 61 6e 64 6c |ype and |srcHandl|
|00000960| 65 20 69 73 20 74 68 65 | 20 69 6e 70 75 74 20 74 |e is the| input t|
|00000970| 6f 20 74 68 65 20 63 6f | 6d 70 6f 6e 65 6e 74 2e |o the co|mponent.|
|00000980| 20 54 68 65 20 63 6f 6d | 70 6f 6e 65 6e 74 20 72 | The com|ponent r|
|00000990| 65 74 75 72 6e 73 20 74 | 68 65 0d 64 61 74 61 20 |eturns t|he.data |
|000009a0| 69 6e 20 64 73 74 48 61 | 6e 64 6c 65 20 28 69 6e |in dstHa|ndle (in|
|000009b0| 69 74 69 61 6c 69 7a 65 | 64 20 74 6f 20 4e 49 4c |itialize|d to NIL|
|000009c0| 20 62 65 66 6f 72 65 20 | 69 74 20 69 73 20 63 61 | before |it is ca|
|000009d0| 6c 6c 65 64 29 20 61 6e | 64 20 74 79 70 65 20 69 |lled) an|d type i|
|000009e0| 6e 20 64 73 74 54 79 70 | 65 2e 0d 54 68 65 20 66 |n dstTyp|e..The f|
|000009f0| 75 6e 63 74 69 6f 6e 20 | 72 65 74 75 72 6e 73 20 |unction |returns |
|00000a00| 4e 6f 45 72 72 20 69 66 | 20 74 68 65 20 63 6f 6e |NoErr if| the con|
|00000a10| 76 65 72 73 69 6f 6e 20 | 69 73 20 73 75 63 63 65 |version |is succe|
|00000a20| 73 73 66 75 6c 2c 20 6f | 74 68 65 72 77 69 73 65 |ssful, o|therwise|
|00000a30| 20 69 74 0d 72 65 74 75 | 72 6e 73 20 61 6e 20 65 | it.retu|rns an e|
|00000a40| 72 72 6f 72 20 63 6f 64 | 65 2e 20 49 66 20 74 68 |rror cod|e. If th|
|00000a50| 65 20 6f 70 65 72 61 74 | 69 6f 6e 20 69 73 20 73 |e operat|ion is s|
|00000a60| 75 63 63 65 73 73 66 75 | 6c 20 62 75 74 20 6e 6f |uccessfu|l but no|
|00000a70| 20 64 61 74 61 20 68 61 | 6e 64 6c 65 20 69 73 0d | data ha|ndle is.|
|00000a80| 67 65 6e 65 72 61 74 65 | 64 20 28 61 73 20 69 6e |generate|d (as in|
|00000a90| 20 74 68 65 20 63 61 73 | 65 20 77 68 65 72 65 20 | the cas|e where |
|00000aa0| 74 68 65 20 63 6f 6d 70 | 6f 6e 65 6e 74 20 6a 75 |the comp|onent ju|
|00000ab0| 73 74 20 70 72 69 6e 74 | 73 20 74 68 65 20 64 61 |st print|s the da|
|00000ac0| 74 61 29 2c 20 74 68 65 | 6e 20 69 74 0d 73 68 6f |ta), the|n it.sho|
|00000ad0| 75 6c 64 20 72 65 74 75 | 72 6e 20 61 20 4e 6f 45 |uld retu|rn a NoE|
|00000ae0| 72 72 20 62 75 74 20 6c | 65 61 76 65 73 20 74 68 |rr but l|eaves th|
|00000af0| 65 20 64 73 74 48 61 6e | 64 6c 65 20 61 73 20 4e |e dstHan|dle as N|
|00000b00| 49 4c 2e 0d 0d 54 68 65 | 20 52 6f 75 74 69 6e 65 |IL...The| Routine|
|00000b10| 49 6e 66 6f 20 73 75 70 | 70 6c 69 65 73 20 73 6f |Info sup|plies so|
|00000b20| 6d 65 20 69 6e 66 6f 72 | 6d 61 74 69 6f 6e 20 74 |me infor|mation t|
|00000b30| 68 61 74 20 6d 61 79 20 | 62 65 20 75 73 65 66 75 |hat may |be usefu|
|00000b40| 6c 2e 20 52 65 73 49 44 | 20 69 73 20 74 68 65 0d |l. ResID| is the.|
|00000b50| 72 65 73 6f 75 72 63 65 | 20 49 44 20 6f 66 20 74 |resource| ID of t|
|00000b60| 68 69 73 20 63 6f 64 65 | 20 72 65 73 6f 75 72 63 |his code| resourc|
|00000b70| 65 2e 20 53 69 6e 63 65 | 20 61 20 63 6f 6d 70 6f |e. Since| a compo|
|00000b80| 6e 65 6e 74 20 6d 61 79 | 20 6e 65 65 64 20 74 6f |nent may| need to|
|00000b90| 20 6f 77 6e 20 72 65 73 | 6f 75 72 63 65 2c 0d 74 | own res|ource,.t|
|00000ba0| 68 65 20 63 6f 6e 76 65 | 6e 74 69 6f 6e 20 69 73 |he conve|ntion is|
|00000bb0| 20 74 68 61 74 20 61 6e | 20 49 44 20 72 61 6e 67 | that an| ID rang|
|00000bc0| 65 20 6f 66 20 33 32 20 | 69 73 20 61 73 73 69 67 |e of 32 |is assig|
|00000bd0| 6e 65 64 20 74 6f 20 74 | 68 65 20 63 6f 6d 70 6f |ned to t|he compo|
|00000be0| 6e 65 6e 74 2e 20 49 74 | 20 63 61 6e 0d 66 69 6e |nent. It| can.fin|
|00000bf0| 64 20 6f 75 74 20 69 74 | 73 20 6f 77 6e 20 49 44 |d out it|s own ID|
|00000c00| 20 73 6f 20 74 68 61 74 | 20 69 74 20 63 61 6e 20 | so that| it can |
|00000c10| 64 65 64 75 63 65 20 74 | 68 65 20 49 44 20 6f 66 |deduce t|he ID of|
|00000c20| 20 74 68 65 20 6f 77 6e | 65 64 20 72 65 73 6f 75 | the own|ed resou|
|00000c30| 72 63 65 73 2e 0d 0d 50 | 61 72 6d 43 6f 75 6e 74 |rces...P|armCount|
|00000c40| 20 69 73 20 74 68 65 20 | 6e 75 6d 62 65 72 20 6f | is the |number o|
|00000c50| 66 20 70 61 72 61 6d 65 | 74 65 72 73 20 69 6e 20 |f parame|ters in |
|00000c60| 50 61 72 6d 49 6e 66 6f | 2e 20 52 69 67 68 74 20 |ParmInfo|. Right |
|00000c70| 6e 6f 77 20 69 74 20 69 | 73 20 61 6c 77 61 79 73 |now it i|s always|
|00000c80| 20 34 2e 0d 49 74 20 69 | 73 20 70 75 74 20 68 65 | 4..It i|s put he|
|00000c90| 72 65 20 62 65 63 61 75 | 73 65 20 69 74 20 6d 61 |re becau|se it ma|
|00000ca0| 79 20 62 65 20 70 6f 73 | 73 69 62 6c 65 20 74 6f |y be pos|sible to|
|00000cb0| 20 75 73 65 20 74 68 65 | 20 27 43 4e 56 54 27 20 | use the| 'CNVT' |
|00000cc0| 63 6f 6d 70 6f 6e 65 6e | 74 73 20 69 6e 20 61 0d |componen|ts in a.|
|00000cd0| 6e 6f 6e 2d 43 4d 20 65 | 6e 76 69 72 6f 6e 6d 65 |non-CM e|nvironme|
|00000ce0| 6e 74 2c 20 61 6e 64 20 | 74 68 65 6e 20 69 74 20 |nt, and |then it |
|00000cf0| 6d 61 79 20 62 65 20 70 | 6f 73 73 69 62 6c 65 20 |may be p|ossible |
|00000d00| 74 6f 20 68 61 76 65 20 | 65 78 74 72 61 20 70 61 |to have |extra pa|
|00000d10| 72 61 6d 65 74 65 72 73 | 2e 20 46 6f 72 0d 65 78 |rameters|. For.ex|
|00000d20| 61 6d 70 6c 65 20 61 20 | 74 65 78 74 20 70 72 69 |ample a |text pri|
|00000d30| 6e 74 69 6e 67 20 6d 6f | 64 75 6c 65 20 6d 61 79 |nting mo|dule may|
|00000d40| 20 61 63 63 65 70 74 20 | 65 78 74 72 61 20 70 61 | accept |extra pa|
|00000d50| 72 61 6d 65 74 65 72 20 | 61 73 20 74 68 65 20 66 |rameter |as the f|
|00000d60| 6f 6e 74 20 61 6e 64 20 | 73 69 7a 65 2c 0d 61 6e |ont and |size,.an|
|00000d70| 64 20 75 73 65 73 20 64 | 65 66 61 75 6c 74 20 66 |d uses d|efault f|
|00000d80| 6f 6e 74 20 61 6e 64 20 | 73 69 7a 65 20 77 68 65 |ont and |size whe|
|00000d90| 6e 20 70 61 72 6d 43 6f | 75 6e 74 20 3d 20 34 20 |n parmCo|unt = 4 |
|00000da0| 62 65 63 61 75 73 65 20 | 6e 6f 20 65 78 74 72 61 |because |no extra|
|00000db0| 20 70 61 72 61 6d 65 74 | 65 72 0d 69 73 20 73 75 | paramet|er.is su|
|00000dc0| 70 70 6c 69 65 64 2e 0d | 0d 55 73 65 44 65 66 61 |pplied..|.UseDefa|
|00000dd0| 75 6c 74 20 6d 65 61 6e | 73 20 77 68 65 74 68 65 |ult mean|s whethe|
|00000de0| 72 20 74 6f 20 75 73 65 | 20 74 68 65 20 64 65 66 |r to use| the def|
|00000df0| 61 75 6c 74 20 76 61 6c | 75 65 20 6f 72 20 74 6f |ault val|ue or to|
|00000e00| 20 61 73 6b 20 74 68 65 | 20 75 73 65 72 20 61 62 | ask the| user ab|
|00000e10| 6f 75 74 20 69 74 2e 0d | 49 6e 20 74 68 65 20 43 |out it..|In the C|
|00000e20| 4d 20 65 6e 76 69 72 6f | 6e 6d 65 6e 74 20 55 73 |M enviro|nment Us|
|00000e30| 65 44 65 66 61 75 6c 74 | 20 69 73 20 66 61 6c 73 |eDefault| is fals|
|00000e40| 65 20 69 66 20 74 68 65 | 20 63 6f 6d 6d 61 6e 64 |e if the| command|
|00000e50| 20 77 61 73 20 65 76 6f | 6b 65 64 20 77 69 74 68 | was evo|ked with|
|00000e60| 20 74 68 65 0d 6f 70 74 | 69 6f 6e 20 6b 65 79 20 | the.opt|ion key |
|00000e70| 64 6f 77 6e 2e 20 53 6f | 20 69 6e 20 74 68 65 20 |down. So| in the |
|00000e80| 74 65 78 74 20 70 72 69 | 6e 74 69 6e 67 20 6d 6f |text pri|nting mo|
|00000e90| 64 75 6c 65 2c 20 69 66 | 20 55 73 65 44 65 66 61 |dule, if| UseDefa|
|00000ea0| 75 6c 74 20 69 73 20 74 | 72 75 65 2c 20 74 68 65 |ult is t|rue, the|
|00000eb0| 0d 74 65 78 74 20 69 73 | 20 70 72 69 6e 74 65 64 |.text is| printed|
|00000ec0| 20 77 69 74 68 20 63 65 | 72 74 61 69 6e 20 66 6f | with ce|rtain fo|
|00000ed0| 6e 74 20 61 6e 64 20 73 | 69 7a 65 2c 20 69 66 20 |nt and s|ize, if |
|00000ee0| 69 74 20 69 73 20 66 61 | 6c 73 65 2c 20 61 20 66 |it is fa|lse, a f|
|00000ef0| 6f 6e 74 20 64 69 61 6c | 6f 67 20 69 73 0d 75 73 |ont dial|og is.us|
|00000f00| 65 64 20 74 6f 20 6c 65 | 74 20 74 68 65 20 75 73 |ed to le|t the us|
|00000f10| 65 72 20 63 68 6f 6f 73 | 65 20 74 68 65 20 76 61 |er choos|e the va|
|00000f20| 6c 75 65 2e 0d 0d 45 6e | 74 72 79 50 6f 69 6e 74 |lue...En|tryPoint|
|00000f30| 20 69 73 20 74 68 65 20 | 61 64 64 72 65 73 73 20 | is the |address |
|00000f40| 70 72 6f 76 69 64 65 64 | 20 74 6f 20 63 61 6c 6c |provided| to call|
|00000f50| 20 6f 74 68 65 72 20 63 | 6f 6d 70 6f 6e 65 6e 74 | other c|omponent|
|00000f60| 73 2e 20 49 66 20 74 68 | 65 20 63 6f 6d 70 6f 6e |s. If th|e compon|
|00000f70| 65 6e 74 0d 77 69 73 68 | 20 74 6f 20 63 61 6c 6c |ent.wish| to call|
|00000f80| 20 61 6e 6f 74 68 65 72 | 20 63 6f 6d 70 6f 6e 65 | another| compone|
|00000f90| 6e 74 2c 20 74 68 65 6e | 20 69 74 20 73 68 6f 75 |nt, then| it shou|
|00000fa0| 6c 64 20 64 65 66 69 6e | 65 20 74 68 65 20 66 6f |ld defin|e the fo|
|00000fb0| 6c 6c 6f 77 69 6e 67 20 | 66 75 6e 63 74 69 6f 6e |llowing |function|
|00000fc0| 0d 0d 46 75 6e 63 74 69 | 6f 6e 20 47 6f 45 78 65 |..Functi|on GoExe|
|00000fd0| 63 28 72 74 6e 52 73 72 | 63 3a 20 52 65 73 54 79 |c(rtnRsr|c: ResTy|
|00000fe0| 70 65 3b 20 4e 61 6d 65 | 50 74 72 3a 53 74 72 69 |pe; Name|Ptr:Stri|
|00000ff0| 6e 74 50 74 72 3b 20 70 | 61 72 6d 43 6f 75 6e 74 |ntPtr; p|armCount|
|00001000| 3a 49 6e 74 65 67 65 72 | 3b 0d 09 09 09 09 75 73 |:Integer|;.....us|
|00001010| 65 44 65 66 61 75 6c 74 | 3a 42 6f 6f 6c 65 61 6e |eDefault|:Boolean|
|00001020| 3b 20 70 61 72 6d 50 74 | 72 3a 50 74 72 3b 20 65 |; parmPt|r:Ptr; e|
|00001030| 6e 74 72 79 50 6f 69 6e | 74 3a 50 72 6f 63 50 74 |ntryPoin|t:ProcPt|
|00001040| 72 29 3a 0d 09 09 09 09 | 4f 53 45 72 72 3b 20 49 |r):.....|OSErr; I|
|00001050| 4e 4c 49 4e 45 20 24 32 | 30 35 46 2c 20 24 34 45 |NLINE $2|05F, $4E|
|00001060| 39 30 3b 20 7b 6d 6f 76 | 65 2e 6c 20 28 41 37 29 |90; {mov|e.l (A7)|
|00001070| 2b 2c 20 41 30 3b 20 4a | 53 52 20 28 41 30 29 7d |+, A0; J|SR (A0)}|
|00001080| 0d 09 09 09 09 0d 52 74 | 6e 52 73 72 63 20 69 73 |......Rt|nRsrc is|
|00001090| 20 74 68 65 20 72 65 73 | 6f 75 72 63 65 20 74 79 | the res|ource ty|
|000010a0| 70 65 20 6f 66 20 74 68 | 65 20 63 6f 6d 70 6f 6e |pe of th|e compon|
|000010b0| 65 6e 74 2c 20 6e 6f 72 | 6d 61 6c 6c 79 20 69 74 |ent, nor|mally it|
|000010c0| 20 69 73 20 27 43 4e 56 | 54 27 2e 20 0d 27 43 4e | is 'CNV|T'. .'CN|
|000010d0| 56 54 27 20 72 65 73 6f | 75 72 63 65 20 69 73 20 |VT' reso|urce is |
|000010e0| 76 69 73 69 62 6c 65 20 | 74 6f 20 74 68 65 20 75 |visible |to the u|
|000010f0| 73 65 72 20 61 6e 64 20 | 77 69 6c 6c 20 62 65 20 |ser and |will be |
|00001100| 65 78 65 63 75 74 65 64 | 20 62 79 20 74 68 65 20 |executed| by the |
|00001110| 75 73 65 72 2c 0d 49 66 | 20 79 6f 75 20 77 61 6e |user,.If| you wan|
|00001120| 74 20 74 6f 20 77 72 69 | 74 65 20 61 20 63 6f 6d |t to wri|te a com|
|00001130| 70 6f 6e 65 6e 74 20 74 | 68 61 74 20 69 73 20 73 |ponent t|hat is s|
|00001140| 68 61 72 65 64 20 62 79 | 20 73 65 76 65 72 61 6c |hared by| several|
|00001150| 20 63 6f 6d 70 6f 6e 65 | 6e 74 73 20 61 6e 64 20 | compone|nts and |
|00001160| 79 65 74 0d 6e 6f 74 20 | 76 69 73 69 62 6c 65 20 |yet.not |visible |
|00001170| 74 6f 20 74 68 65 20 75 | 73 65 72 2c 20 79 6f 75 |to the u|ser, you|
|00001180| 20 63 61 6e 20 70 75 74 | 20 74 68 65 6d 20 69 6e | can put| them in|
|00001190| 74 6f 20 27 58 52 54 4e | 27 20 72 65 73 6f 75 72 |to 'XRTN|' resour|
|000011a0| 63 65 73 2e 20 27 58 52 | 54 4e 27 0d 72 65 73 6f |ces. 'XR|TN'.reso|
|000011b0| 75 72 63 65 20 61 72 65 | 20 6c 69 6b 65 20 27 43 |urce are| like 'C|
|000011c0| 4e 56 54 27 20 65 78 63 | 65 70 74 20 74 68 65 72 |NVT' exc|ept ther|
|000011d0| 65 20 69 73 20 6e 6f 20 | 6e 61 6d 69 6e 67 20 63 |e is no |naming c|
|000011e0| 6f 6e 76 65 6e 74 69 6f | 6e 20 61 6e 64 20 79 6f |onventio|n and yo|
|000011f0| 75 0d 64 65 63 69 64 65 | 20 77 68 61 74 20 74 68 |u.decide| what th|
|00001200| 65 20 70 61 72 6d 61 74 | 65 72 73 20 61 72 65 2e |e parmat|ers are.|
|00001210| 20 4e 61 6d 65 50 74 72 | 20 69 73 20 74 68 65 20 | NamePtr| is the |
|00001220| 6e 61 6d 65 20 6f 66 20 | 74 68 65 20 63 6f 6d 70 |name of |the comp|
|00001230| 6f 6e 65 74 20 79 6f 75 | 20 77 61 6e 74 0d 74 6f |onet you| want.to|
|00001240| 20 63 61 6c 6c 2e 20 49 | 66 20 79 6f 75 20 61 72 | call. I|f you ar|
|00001250| 65 20 63 61 6c 6c 69 6e | 67 20 61 20 27 43 4e 56 |e callin|g a 'CNV|
|00001260| 54 27 20 63 6f 6d 70 6f | 6e 65 6e 74 2c 20 64 6f |T' compo|nent, do|
|00001270| 20 6e 6f 74 20 66 6f 72 | 67 65 74 20 74 68 61 74 | not for|get that|
|00001280| 20 74 68 65 72 65 20 61 | 72 65 0d 66 6f 75 72 20 | there a|re.four |
|00001290| 6c 65 74 74 65 72 73 20 | 69 6e 20 74 68 65 20 66 |letters |in the f|
|000012a0| 72 6f 6e 74 2e 20 70 61 | 72 6d 43 6f 75 6e 74 2c |ront. pa|rmCount,|
|000012b0| 20 75 73 65 44 65 66 61 | 75 6c 74 20 68 61 73 20 | useDefa|ult has |
|000012c0| 74 68 65 20 75 73 75 61 | 6c 20 6d 65 61 6e 69 6e |the usua|l meanin|
|000012d0| 67 2e 0d 59 6f 75 20 6d | 61 6b 65 20 75 70 20 79 |g..You m|ake up y|
|000012e0| 6f 75 72 20 6f 77 6e 20 | 70 61 72 61 6d 65 74 65 |our own |paramete|
|000012f0| 72 20 6c 69 73 74 20 61 | 6e 64 20 75 73 65 20 70 |r list a|nd use p|
|00001300| 61 72 6d 50 74 72 20 74 | 6f 20 70 6f 69 6e 74 20 |armPtr t|o point |
|00001310| 74 6f 20 69 74 2e 20 52 | 65 6d 65 6d 62 65 72 0d |to it. R|emember.|
|00001320| 74 68 61 74 20 69 66 20 | 79 6f 75 20 61 72 65 20 |that if |you are |
|00001330| 63 61 6c 6c 69 6e 67 20 | 61 20 58 52 54 4e 2c 20 |calling |a XRTN, |
|00001340| 74 68 65 6e 20 74 68 65 | 20 70 61 72 61 6d 65 74 |then the| paramet|
|00001350| 65 72 20 72 65 63 6f 72 | 64 20 6e 6f 20 6c 6f 6e |er recor|d no lon|
|00001360| 67 65 72 20 6e 65 65 64 | 20 74 6f 0d 62 65 20 6f |ger need| to.be o|
|00001370| 66 20 74 68 65 20 74 79 | 70 65 20 50 61 72 6d 49 |f the ty|pe ParmI|
|00001380| 6e 66 6f 2c 20 74 68 61 | 74 20 69 73 20 77 68 79 |nfo, tha|t is why|
|00001390| 20 70 61 72 6d 50 74 72 | 20 69 73 20 61 20 50 74 | parmPtr| is a Pt|
|000013a0| 72 20 72 61 74 68 65 72 | 20 74 68 61 6e 20 61 20 |r rather| than a |
|000013b0| 50 61 72 6d 49 6e 66 6f | 50 74 72 2e 0d 65 6e 74 |ParmInfo|Ptr..ent|
|000013c0| 72 79 50 6f 69 6e 74 20 | 69 73 20 6a 75 73 74 20 |ryPoint |is just |
|000013d0| 74 68 65 20 61 64 64 72 | 65 73 73 20 70 72 6f 76 |the addr|ess prov|
|000013e0| 69 64 65 64 20 69 6e 20 | 72 6f 75 74 69 6e 65 49 |ided in |routineI|
|000013f0| 6e 66 6f 20 61 6e 64 20 | 47 6f 45 78 65 63 20 6a |nfo and |GoExec j|
|00001400| 75 73 74 20 6a 73 72 20 | 74 6f 20 69 74 2e 0d 41 |ust jsr |to it..A|
|00001410| 6c 73 6f 20 6e 6f 74 65 | 64 20 74 68 61 74 20 74 |lso note|d that t|
|00001420| 68 65 20 63 61 6c 6c 20 | 6d 61 79 20 62 65 20 74 |he call |may be t|
|00001430| 6f 20 61 6e 20 65 78 74 | 65 72 6e 61 6c 20 72 6f |o an ext|ernal ro|
|00001440| 75 74 69 6e 65 20 61 73 | 20 77 65 6c 6c 20 61 73 |utine as| well as|
|00001450| 20 74 6f 20 61 6e 0d 69 | 6e 74 65 72 6e 61 6c 20 | to an.i|nternal |
|00001460| 72 6f 75 74 69 6e 65 20 | 73 69 6e 63 65 20 69 74 |routine |since it|
|00001470| 20 69 73 20 75 70 20 74 | 6f 20 74 68 65 20 64 69 | is up t|o the di|
|00001480| 73 70 61 74 63 68 65 72 | 20 69 6e 20 43 4d 2e 20 |spatcher| in CM. |
|00001490| 48 6f 77 65 76 65 72 2c | 20 74 68 65 20 63 75 72 |However,| the cur|
|000014a0| 72 65 6e 74 0d 69 6d 70 | 6c 65 6d 65 6e 74 61 74 |rent.imp|lementat|
|000014b0| 69 6f 6e 20 6f 66 20 43 | 4d 20 68 61 73 20 6e 6f |ion of C|M has no|
|000014c0| 20 69 6e 74 65 72 6e 61 | 6c 20 63 61 6c 6c 20 62 | interna|l call b|
|000014d0| 61 63 6b 20 72 6f 75 74 | 69 6e 65 20 73 6f 20 61 |ack rout|ine so a|
|000014e0| 6c 6c 20 63 61 6c 6c 73 | 20 77 6f 75 6c 64 20 62 |ll calls| would b|
|000014f0| 65 0d 64 69 73 70 61 74 | 63 68 65 64 20 74 6f 20 |e.dispat|ched to |
|00001500| 65 78 74 65 72 6e 61 6c | 20 63 6f 6d 70 6f 6e 65 |external| compone|
|00001510| 6e 74 73 2e 0d 0d 27 43 | 4e 56 54 27 20 63 6f 6d |nts...'C|NVT' com|
|00001520| 70 6f 6e 65 6e 74 20 6d | 61 79 20 68 61 76 65 20 |ponent m|ay have |
|00001530| 61 20 72 65 73 6f 75 72 | 63 65 20 27 43 4e 56 21 |a resour|ce 'CNV!|
|00001540| 27 20 77 69 74 68 20 74 | 68 65 20 73 61 6d 65 20 |' with t|he same |
|00001550| 49 44 20 61 6e 64 20 74 | 68 65 20 73 61 6d 65 20 |ID and t|he same |
|00001560| 64 61 74 61 0d 66 6f 72 | 6d 61 74 20 61 73 20 27 |data.for|mat as '|
|00001570| 53 54 52 20 27 2c 20 74 | 68 65 20 73 74 72 69 6e |STR ', t|he strin|
|00001580| 67 20 69 73 20 61 20 73 | 69 6d 70 6c 65 20 64 65 |g is a s|imple de|
|00001590| 73 63 72 69 70 74 69 6f | 6e 20 6f 66 20 74 68 65 |scriptio|n of the|
|000015a0| 20 63 6f 6d 70 6f 6e 65 | 6e 74 20 61 6e 64 0d 77 | compone|nt and.w|
|000015b0| 69 6c 6c 20 62 65 20 64 | 69 73 70 6c 61 79 65 64 |ill be d|isplayed|
|000015c0| 20 77 68 65 6e 20 74 68 | 65 20 75 73 65 72 20 63 | when th|e user c|
|000015d0| 68 6f 6f 73 65 20 22 41 | 62 6f 75 74 20 74 68 69 |hoose "A|bout thi|
|000015e0| 73 20 63 6f 6d 6d 61 6e | 64 22 20 66 72 6f 6d 20 |s comman|d" from |
|000015f0| 74 68 65 20 6d 65 6e 75 | 2e 0d 0d 2a 2a 2a 2a 2a |the menu|...*****|
|00001600| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00001610| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00001620| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00001630| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00001640| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 0d 0d 49 6e 20 76 65 |********|*..In ve|
|00001650| 72 73 69 6f 6e 20 30 2e | 35 35 2c 20 79 6f 75 20 |rsion 0.|55, you |
|00001660| 6d 61 79 20 72 65 74 75 | 72 6e 20 61 20 64 61 74 |may retu|rn a dat|
|00001670| 61 20 74 79 70 65 20 6e | 61 6d 65 20 27 73 63 72 |a type n|ame 'scr|
|00001680| 70 27 20 77 68 69 63 68 | 20 68 61 73 20 74 68 65 |p' which| has the|
|00001690| 20 73 61 6d 65 20 66 6f | 72 6d 61 74 0d 61 73 20 | same fo|rmat.as |
|000016a0| 73 63 72 61 70 20 64 61 | 74 61 2c 20 69 2e 65 2e |scrap da|ta, i.e.|
|000016b0| 20 54 79 70 65 20 6e 61 | 6d 65 20 66 6f 6c 6c 6f | Type na|me follo|
|000016c0| 77 65 64 20 62 79 20 6c | 6f 6e 67 20 77 6f 72 64 |wed by l|ong word|
|000016d0| 20 64 61 74 61 20 6c 65 | 6e 67 74 68 2c 20 66 6f | data le|ngth, fo|
|000016e0| 6c 6c 6f 77 65 64 20 62 | 79 20 74 68 65 0d 64 61 |llowed b|y the.da|
|000016f0| 74 61 20 70 61 64 64 65 | 64 20 74 6f 20 65 76 65 |ta padde|d to eve|
|00001700| 6e 20 62 79 74 65 73 2c | 20 74 68 65 6e 20 74 68 |n bytes,| then th|
|00001710| 65 20 6e 65 78 74 20 74 | 79 70 65 20 65 74 63 2e |e next t|ype etc.|
|00001720| 20 54 68 65 20 44 41 20 | 77 6f 75 6c 64 20 62 72 | The DA |would br|
|00001730| 65 61 6b 20 75 70 20 74 | 68 65 20 64 61 74 61 0d |eak up t|he data.|
|00001740| 61 6e 64 20 70 75 74 20 | 61 6c 6c 20 6f 66 20 74 |and put |all of t|
|00001750| 68 65 6d 20 6f 6e 20 74 | 6f 20 74 68 65 20 73 63 |hem on t|o the sc|
|00001760| 72 61 70 2e 20 42 65 20 | 61 77 61 72 65 20 6f 66 |rap. Be |aware of|
|00001770| 20 74 68 65 20 66 61 63 | 74 20 74 68 65 20 73 70 | the fac|t the sp|
|00001780| 65 63 69 66 69 63 61 74 | 69 6f 6e 20 6f 66 20 74 |ecificat|ion of t|
|00001790| 68 65 0d 63 6c 69 70 62 | 6f 61 72 64 20 6d 61 67 |he.clipb|oard mag|
|000017a0| 69 63 69 61 6e 20 73 74 | 69 6c 6c 20 6e 65 65 64 |ician st|ill need|
|000017b0| 20 69 6d 70 72 6f 76 65 | 6d 65 6e 74 20 61 6e 64 | improve|ment and|
|000017c0| 20 65 78 70 65 63 74 20 | 73 75 63 68 20 65 76 6f | expect |such evo|
|000017d0| 6c 75 74 69 6f 6e 61 72 | 79 20 63 68 61 6e 67 65 |lutionar|y change|
|000017e0| 73 20 69 6e 20 74 68 65 | 0d 66 75 74 75 72 65 2e |s in the|.future.|
|000017f0| 0d 0d 49 20 68 61 76 65 | 20 61 6c 73 6f 20 69 6e |..I have| also in|
|00001800| 63 6c 75 64 65 64 20 61 | 20 73 61 6d 70 6c 65 20 |cluded a| sample |
|00001810| 70 72 6f 67 72 61 6d 20 | 74 6f 20 73 68 6f 77 20 |program |to show |
|00001820| 68 6f 77 20 61 20 63 6f | 6e 76 65 72 74 6f 72 20 |how a co|nvertor |
|00001830| 6c 6f 6f 6b 73 20 6c 69 | 6b 65 2e 20 46 6f 72 0d |looks li|ke. For.|
|00001840| 74 68 6f 73 65 20 6f 66 | 20 79 6f 75 20 77 6f 72 |those of| you wor|
|00001850| 6b 69 6e 67 20 77 69 74 | 68 20 4c 69 67 68 74 53 |king wit|h LightS|
|00001860| 70 65 65 64 20 50 61 73 | 63 61 6c 2c 20 49 20 68 |peed Pas|cal, I h|
|00001870| 61 76 65 20 61 6c 73 6f | 20 69 6e 63 6c 75 64 65 |ave also| include|
|00001880| 20 61 20 73 69 6d 75 6c | 61 74 6f 72 20 74 68 61 | a simul|ator tha|
|00001890| 74 0d 6c 65 74 20 79 6f | 75 20 64 75 62 75 67 20 |t.let yo|u dubug |
|000018a0| 61 20 43 4e 56 54 20 63 | 6f 64 65 20 72 65 73 6f |a CNVT c|ode reso|
|000018b0| 75 72 63 65 20 61 73 20 | 61 6e 20 6f 72 64 69 6e |urce as |an ordin|
|000018c0| 72 61 79 20 72 6f 75 74 | 69 6e 65 20 72 61 74 68 |ray rout|ine rath|
|000018d0| 65 72 20 74 68 61 6e 20 | 61 73 20 61 20 63 6f 64 |er than |as a cod|
|000018e0| 65 0d 72 65 73 6f 75 72 | 63 65 20 73 6f 20 74 68 |e.resour|ce so th|
|000018f0| 61 74 20 79 6f 75 20 63 | 61 6e 20 75 73 65 20 61 |at you c|an use a|
|00001900| 6c 6c 20 74 68 65 20 64 | 75 62 75 67 20 66 61 63 |ll the d|ubug fac|
|00001910| 69 6c 69 74 65 73 20 6f | 66 20 4c 53 50 2e 20 54 |ilites o|f LSP. T|
|00001920| 68 69 73 20 69 73 20 6c | 69 6b 65 20 74 68 65 20 |his is l|ike the |
|00001930| 44 41 0d 73 68 65 6c 6c | 20 69 6e 20 4c 53 50 2e |DA.shell| in LSP.|
|00001940| 20 49 6e 20 66 61 63 74 | 20 61 6c 6c 20 74 68 65 | In fact| all the|
|00001950| 20 63 6f 6d 70 6f 6e 65 | 6e 74 73 20 72 65 6c 65 | compone|nts rele|
|00001960| 61 73 65 20 61 66 74 65 | 72 20 76 65 72 73 69 6f |ase afte|r versio|
|00001970| 6e 20 30 2e 35 20 61 72 | 65 20 77 72 69 74 74 65 |n 0.5 ar|e writte|
|00001980| 6e 20 74 68 69 73 20 77 | 61 79 2e 0d 54 68 65 72 |n this w|ay..Ther|
|00001990| 65 20 61 72 65 20 74 77 | 6f 20 63 6f 6e 73 74 61 |e are tw|o consta|
|000019a0| 6e 74 73 20 79 6f 75 20 | 6e 65 65 64 20 74 6f 20 |nts you |need to |
|000019b0| 73 70 65 63 69 66 79 20 | 66 6f 72 20 65 76 65 72 |specify |for ever|
|000019c0| 79 20 6e 65 77 20 43 4e | 56 54 20 74 68 61 74 20 |y new CN|VT that |
|000019d0| 79 6f 75 20 61 72 65 20 | 67 6f 69 6e 67 20 74 6f |you are |going to|
|000019e0| 0d 77 72 69 74 65 2e 20 | 54 68 65 20 66 69 72 73 |.write. |The firs|
|000019f0| 74 20 69 73 20 74 68 65 | 20 74 79 70 65 20 6f 66 |t is the| type of|
|00001a00| 20 64 61 74 61 20 69 74 | 20 63 61 6e 20 68 61 6e | data it| can han|
|00001a10| 64 6c 65 20 28 72 65 73 | 6f 75 72 63 65 20 6e 61 |dle (res|ource na|
|00001a20| 6d 65 2f 2a 2a 2a 2a 2f | 5f 5f 5f 5f 29 2e 20 20 |me/****/|____). |
|00001a30| 49 66 20 79 6f 75 0d 69 | 6e 74 65 6e 64 20 74 6f |If you.i|ntend to|
|00001a40| 20 75 73 65 20 72 65 73 | 6f 75 72 63 65 73 20 79 | use res|ources y|
|00001a50| 6f 75 20 61 6c 73 6f 20 | 6e 65 65 64 20 74 6f 20 |ou also |need to |
|00001a60| 73 70 65 63 69 66 79 20 | 74 68 65 20 72 65 73 6f |specify |the reso|
|00001a70| 75 72 63 65 20 62 61 73 | 65 20 49 44 2e 0d 49 66 |urce bas|e ID..If|
|00001a80| 20 79 6f 75 20 69 6e 74 | 65 6e 64 20 74 6f 20 63 | you int|end to c|
|00001a90| 61 6c 6c 20 6f 74 68 65 | 72 20 63 6f 64 65 20 72 |all othe|r code r|
|00001aa0| 65 73 6f 75 72 63 65 73 | 20 79 6f 75 20 73 68 6f |esources| you sho|
|00001ab0| 75 6c 64 20 6d 61 6b 65 | 20 61 20 63 6f 70 79 20 |uld make| a copy |
|00001ac0| 6f 66 20 74 68 65 20 4d | 61 67 69 63 20 57 61 6e |of the M|agic Wan|
|00001ad0| 64 0d 61 6e 64 20 75 73 | 65 20 74 68 61 74 20 66 |d.and us|e that f|
|00001ae0| 69 6c 65 20 61 73 20 79 | 6f 75 72 20 72 65 73 6f |ile as y|our reso|
|00001af0| 75 72 63 65 20 66 69 6c | 65 20 69 6e 20 79 6f 75 |urce fil|e in you|
|00001b00| 72 20 64 65 76 65 6c 6f | 70 6d 65 6e 74 20 70 72 |r develo|pment pr|
|00001b10| 6f 63 65 73 73 2e 20 59 | 6f 75 20 6d 61 79 20 75 |ocess. Y|ou may u|
|00001b20| 73 65 20 74 68 65 0d 4d | 61 67 69 63 20 57 61 6e |se the.M|agic Wan|
|00001b30| 64 20 66 69 6c 65 20 64 | 69 72 65 63 74 6c 79 20 |d file d|irectly |
|00001b40| 69 66 20 79 6f 75 20 64 | 6f 20 6e 6f 74 20 69 6e |if you d|o not in|
|00001b50| 74 65 6e 64 20 74 6f 20 | 63 61 6c 6c 20 75 70 20 |tend to |call up |
|00001b60| 74 68 65 20 43 6c 69 70 | 62 6f 61 72 64 20 4d 61 |the Clip|board Ma|
|00001b70| 67 69 63 61 6e 20 44 41 | 0d 64 75 72 69 6e 67 20 |gican DA|.during |
|00001b80| 79 6f 75 72 20 64 65 62 | 75 67 20 70 72 6f 63 65 |your deb|ug proce|
|00001b90| 73 73 2e 20 48 6f 77 65 | 76 65 72 20 6d 79 20 6f |ss. Howe|ver my o|
|00001ba0| 77 6e 20 65 78 70 65 72 | 69 65 6e 63 65 20 69 73 |wn exper|ience is|
|00001bb0| 20 74 68 61 74 20 69 74 | 20 69 73 20 75 73 65 66 | that it| is usef|
|00001bc0| 75 6c 20 74 6f 20 62 65 | 20 61 62 6c 65 0d 74 6f |ul to be| able.to|
|00001bd0| 20 63 61 6c 6c 20 75 70 | 20 74 68 65 20 44 41 2e | call up| the DA.|
|00001be0| 20 54 68 65 20 73 69 6d | 75 6c 61 74 6f 72 20 69 | The sim|ulator i|
|00001bf0| 73 20 66 6f 72 20 74 65 | 73 74 69 6e 67 20 70 75 |s for te|sting pu|
|00001c00| 72 70 6f 73 65 20 61 6e | 64 20 64 6f 65 73 20 6e |rpose an|d does n|
|00001c10| 6f 74 20 6f 70 65 72 61 | 74 65 73 20 6c 69 6b 65 |ot opera|tes like|
|00001c20| 0d 74 68 65 20 44 41 2e | 20 48 65 72 65 20 74 68 |.the DA.| Here th|
|00001c30| 65 20 63 6f 6d 70 6f 6e | 65 6e 74 73 20 64 6f 20 |e compon|ents do |
|00001c40| 6e 6f 74 20 77 6f 72 6b | 20 6f 6e 20 74 68 65 20 |not work| on the |
|00001c50| 64 61 74 61 20 66 72 6f | 6d 20 74 68 65 20 73 63 |data fro|m the sc|
|00001c60| 72 61 70 20 64 69 72 65 | 63 74 6c 79 2e 20 54 68 |rap dire|ctly. Th|
|00001c70| 65 0d 70 72 6f 67 72 61 | 6d 20 6d 61 69 6e 74 61 |e.progra|m mainta|
|00001c80| 69 6e 73 20 61 20 6c 69 | 73 74 20 6f 66 20 64 61 |ins a li|st of da|
|00001c90| 74 61 20 6f 62 6a 65 63 | 74 73 20 28 77 68 69 63 |ta objec|ts (whic|
|00001ca0| 68 20 79 6f 75 20 63 61 | 6e 20 63 75 74 2f 63 6f |h you ca|n cut/co|
|00001cb0| 70 79 2f 70 61 73 74 65 | 20 74 6f 20 74 68 65 20 |py/paste| to the |
|00001cc0| 73 63 72 61 70 29 2c 0d | 74 68 65 20 63 6f 6d 70 |scrap),.|the comp|
|00001cd0| 6f 6e 65 6e 74 20 77 69 | 6c 6c 20 77 6f 72 6b 20 |onent wi|ll work |
|00001ce0| 6f 6e 20 74 68 65 20 64 | 61 74 61 20 6f 62 6a 65 |on the d|ata obje|
|00001cf0| 63 74 20 73 65 6c 65 63 | 74 65 64 20 61 6e 64 20 |ct selec|ted and |
|00001d00| 74 68 65 20 72 65 73 75 | 6c 74 20 77 69 6c 6c 20 |the resu|lt will |
|00001d10| 62 65 20 61 64 64 65 64 | 20 74 6f 0d 74 68 65 20 |be added| to.the |
|00001d20| 6c 69 73 74 20 6f 66 20 | 64 61 74 61 20 6f 62 6a |list of |data obj|
|00001d30| 65 63 74 73 2e 0d 00 00 | 00 00 00 00 00 00 00 00 |ects....|........|
|00001d40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d80| 00 00 01 00 00 00 01 4c | 00 00 00 4c 00 00 00 32 |.......L|...L...2|
|00001d90| 3c 6e 9c 37 00 00 04 00 | 00 00 10 00 00 0d 00 00 |<n.7....|........|
|00001da0| 10 d2 06 09 04 48 44 34 | 30 00 00 00 00 00 00 00 |.....HD4|0.......|
|00001db0| 17 70 72 6f 67 72 61 6d | 6d 69 6e 67 20 69 6e 66 |.program|ming inf|
|00001dc0| 6f 72 6d 61 74 69 6f 6e | 02 00 00 00 54 45 58 54 |ormation|....TEXT|
|00001dd0| 00 00 54 45 58 54 4d 50 | 53 20 01 00 00 00 01 40 |..TEXTMP|S .....@|
|00001de0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001df0| 00 00 a0 60 0f 62 00 00 | 1c b6 00 00 01 7e 00 00 |...`.b..|.....~..|
|00001e00| 00 00 00 04 e4 00 00 00 | 01 39 00 00 00 00 00 00 |........|.9......|
|00001e10| 00 00 00 04 e4 00 01 39 | 01 39 00 00 00 00 00 00 |.......9|.9......|
|00001e20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001e30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001e40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001e50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001e60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001e70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001e80| 00 00 00 48 00 09 4d 6f | 6e 61 63 6f 00 00 00 14 |...H..Mo|naco....|
|00001e90| 00 01 03 a8 00 0a 00 14 | 00 22 00 f4 00 b2 00 00 |........|."......|
|00001ea0| 00 00 00 3c 00 00 00 06 | 00 04 00 50 00 20 01 dd |...<....|...P. ..|
|00001eb0| 02 7d 00 50 00 20 01 dd | 02 7d a0 aa ef 55 00 00 |.}.P. ..|.}...U..|
|00001ec0| 19 60 00 00 19 60 00 00 | 15 7b 01 00 00 00 01 00 |.`...`..|.{......|
|00001ed0| 00 00 01 4c 00 00 00 4c | 00 00 00 32 00 20 29 0c |...L...L|...2. ).|
|00001ee0| 05 e2 00 00 00 1c 00 32 | 00 00 4d 50 53 52 00 00 |.......2|..MPSR..|
|00001ef0| 00 0a 03 ed ff ff 00 00 | 00 00 00 21 63 70 00 00 |........|...!cp..|
+--------+-------------------------+-------------------------+--------+--------+